import { applyFilter } from '@turf/turf';
import env from 'src/config';

const { baseUrl, ztUrl, scUrl, hshAppKey } = env;
const api = {
    'ide': {
        'type': '通用接口', 'des': '三方接口调用', 'path': `${baseUrl}common/ide`
    },
    'zoneStore': {
        'type': '商圈独占', 'des': '根据战区查门店', 'path': `${baseUrl}oa/store/all`
    },
    'sellOrderInfos': {
        'type': '门店信息', 'des': '获取店铺售卖数据', 'path': `${baseUrl}pos/hsh/sellOrderInfos?appkey=4D48433768345243625A4145316F6B2F396D50534243655A7444592B41774C7636566552645231627464616D714B566A4E51364C464C50646D47674A564B6755`
    },
    qyGetUserInfo: {
        'type': '企业微信', 'des': '回调获取用户信息', 'path': `${baseUrl}tencent/wework/getUserInfo`
    }
};
export const ztApi = {
    //获取数仓门店销售数据
    'queryMapInfo': {
        'url': `${ztUrl}shucang/basedatacontroller/queryMapInfo?appkey=${hshAppKey}`,
    }
};
export const scApi = {
    mapFenceAreasV3: {
        url: `${scUrl}gateway/mapFenceAreasV3`,
        apiToken: 'D51AF7EA20B287A8CB9ED8E0B2DEA4A1276B794EE238919E35C135526CEECAA7'
    },
    querySaleGroupByFgs: {
        url: `${scUrl}gateway/querySaleGroupByFgs`,
        apiToken: '459DF88B8D94380381CB2A55DE8E4934276B794EE238919E35C135526CEECAA7'
    },
    querySaleGroupByZq: {
        url: `${scUrl}gateway/querySaleGroupByZq`,
        apiToken: '70DD60C05ADA6E1C15F52BDE62EC4F17276B794EE238919E35C135526CEECAA7'
    },
    querySaleGroupByShop: {
        url: `${scUrl}gateway/querySaleGroupByShop`,
        apiToken: '5201DFC8B9C9958FE0987D784D0B4EA9276B794EE238919E35C135526CEECAA7'
    }
};
export default api;

